home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 351-375 / disk_359 / dice / dice.lzh / include / time.h < prev    next >
C/C++ Source or Header  |  1990-03-27  |  907b  |  44 lines

  1.  
  2. /*
  3.  *  TIME.H
  4.  *
  5.  */
  6.  
  7. #ifndef _TIME_H
  8. #define _TIME_H
  9.  
  10. #ifndef _STDDEF_H
  11. #include <stddef.h>
  12. #endif
  13.  
  14. typedef unsigned long clock_t;
  15. typedef unsigned long time_t;
  16.  
  17. struct tm {
  18.     int tm_sec;     /*    0-59    */
  19.     int tm_min;     /*    0-59    */
  20.     int tm_hour;    /*    0-23    */
  21.     int tm_mday;    /*    1-31    */
  22.     int tm_mon;     /*    0-11    */
  23.     int tm_year;    /*    n+1900    */
  24.     int tm_wday;    /*    (sun)0-6*/
  25.     int tm_yday;    /*    0-366    */
  26.     int tm_isdst;   /*    daylight svings time flag */
  27. };
  28.  
  29. #define CLK_TCK(clkt)   ((clkt) / 1000)
  30.  
  31. extern char *asctime(const struct tm *);
  32. extern clock_t clock(void);
  33. extern char *ctime(const time_t *);
  34. extern double difftime(time_t, time_t);
  35. extern struct tm *gmtime(const time_t *);
  36. extern struct tm *localtime(const time_t *);
  37. extern time_t mktime(struct tm *);
  38. extern size_t strftime(char *, size_t, const char *, const struct tm *);
  39. extern time_t time(time_t *);
  40.  
  41. #endif
  42.  
  43.  
  44.